const qs = require('qs');
const axios = require('axios');

let cookie = 'UM_distinctid=15d87bfd2ce4b8-0b6d03526f16b9-30657808-1fa400-15d87bfd2cf794; PHPSESSID=d31fjbp7fl9fou8rc6cl0pifq4; user_info=think%3A%7B%22id%22%3A%22757%22%2C%22password%22%3A%229bcb80348cbc3137a76c8b2624695067%22%7D; userlogininfo=gusonyang; CNZZDATA1261806159=472151357-1501220011-null%7C1501281102;'

let instance = axios.create({
    headers: {
        'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36',
        'Cookie': cookie
    }
});

return instance.post('http://taokouling.com/index.php?m=api&a=Getapicheckquan', qs.stringify({
    iid: '14574686274',
    sid: '822253495'
})).then(function (response) {
    console.log(response.data);
});